<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<style>
	body{
		background-image: url(images/7801.jpg);
	}
	.a3{
		top: 60px;
	}
</style>
</head>
<body>
	<div class="a3">
		
	</div>
	<div>
     <table border="1px" cellspace="0" class="table table-hover">
       <tr>
         <td>账号</td>
         <td>用户姓名</td>
         <td>用户性别</td>
         <td>年龄</td>
         <td>身份</td>
         <td>部门信息</td>
         <td>薪资</td>
         <td colspan="2">操作</td>
         </tr>
       <c:forEach items="${list1}" var="u">
         <tr>
         <td><c:out value="${u.account}"></c:out></td>
         <td><c:out value="${u.name}"></c:out></td>
         <td><c:out value="${u.sex }"></c:out></td>
         <td><c:out value="${u.age }"></c:out></td>
         <td><c:out value="${u.identity }"></c:out></td>
         <td><c:out value="${u.department }"></c:out></td>
         <td><c:out value="${u.department }"></c:out></td>
         <td><a href="DeleteUserServlet?id=${u.id }" >删除</a></td>
         <td><a href="ToUpdataUserservlet?id=${u.id }" >修改</a></td>
         </tr>
        </c:forEach> 
         </table>
         <table border="1px" cellspace="0" class="table table-hover">
       <tr>
         <td>物品名称</td>
         <td>总数量</td>
         <td>现有数量</td>
         <td>状态</td>
          <td colspan="2">操作</td>
           
         </tr>
          <c:forEach items="${list2}" var="s">
         <tr>
         <td><c:out value="${s.sname}"></c:out></td>
         <td><c:out value="${s.count1}"></c:out></td>
         <td><c:out value="${s.count2 }"></c:out></td>
         <td><c:out value="${s.status }"></c:out></td>
         <td><a href="DeleteStuff?id=${s.id}">删除</a></td>
         <td><a href="ToUpdataStuffServlet?id=${s.id }">修改</a></td>
         </tr>
         </c:forEach>
          <tr>
            <td><a href="ShowRecordServlet">查看所有领用记录</a></td>
         <td><a href="ShowApplyReceiveServlet">查看员工申请</a></td>
         <td><a href="ShowApplyPurchaseServlet">查看采购申请</a></td>
         <td><a href="/RecipientsSystem/jsp/AddStuff.jsp">采购物品</a></td>
         <td colspan="2"></td>
         </tr>
         </table>	 
</div>
         
         
</body>
</html>
